package jndi;

import java.util.Hashtable;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

public class FileSystemJNDIProvider {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Hashtable env = new Hashtable();
			env.put(Context.INITIAL_CONTEXT_FACTORY, 
			    "com.sun.jndi.fscontext.RefFSContextFactory");

			Context ctx = new InitialContext(env);
		
		} catch (NamingException e) {
			e.printStackTrace();
		}
	}

}
